import Layout from '@/layout'
export default {
  name: 'employees',
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      path: 'import',
      name: 'import',
      component: () => import('@/views/employees/import'),
      hidden: true // 隐藏在左侧菜单中
    },
    {
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      hidden: true // 隐藏在左侧菜单中
    },
    {
      path: 'print/:id', // 二级默认路由
      component: () => import('@/views/employees/print'), // 按需加载
      hidden: true
    }
  ]

}
